package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * <h1>优惠券使用记录表表 micro_coupon_use_record</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "优惠券使用记录表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_coupon_use_record")
public class CouponUseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 优惠券编号
     */
    @ApiModelProperty(value = "优惠券编号")
    private String couponCode;


    /**
     * 使用时间
     */
    @ApiModelProperty(value = "使用时间")
    private Date useTime;


    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String orderCode;


    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编号")
    private String userCode;


    /**
     * 优惠券类型
     */
    @ApiModelProperty(value = "优惠券类型")
    private String templateCategory;


    /**
     * 抵扣金额
     */
    @ApiModelProperty(value = "抵扣金额")
    private BigDecimal deductionPrice;

}
